import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from '../views/HomeView.vue'
import rmsp from '../views/rmsp.vue'
import jxsp from '../views/jxsp.vue'
import hy from '../views/hy.vue'
import lt from '../views/lt.vue'
import sz from '../views/sz.vue'
import sc from '../views/sc.vue'
import ck from '../views/ck.vue'
import grxx from '../views/grxx.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'home',
    component: HomeView,
    redirect: '/rmsp', 
    children: [
        { path: 'rmsp', component: rmsp },
        { path: 'jxsp', component: jxsp },
        { path: 'hy', component: hy },
        { path: 'lt', component: lt },
        { path: 'sz', component: sz },
        { path: 'sc', component: sc },
        { path: 'ck', component: ck },
        { path: 'grxx', component: grxx },
      ]
  }
]

const router = new VueRouter({
  routes
})

export default router
